package com.lcf.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lcf.framework.annotation.DictTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 收入记录(PriceRecord)表实体类
 *
 * @author lcf
 * @since 2025-05-02 11:55:01
 */
@Data
@NoArgsConstructor
public class PriceRecordVO {
    //收入金额
    @Schema(description = "收入金额")
    private BigDecimal earnPrice;
    //购买用户id
    @Schema(description = "购买用户id")
    @DictTable(tableName="sys_user", primaryKey="id", fields={"name"}, nameField={"buyUserName"})
    private Long buyUserId;
    //购买用户名
    @Schema(description = "购买用户名")
    private String buyUserName;
    //订单编号
    @Schema(description = "订单编号")
    private String orderNo;
    //下单时间
    @Schema(description = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;
}

